package com.yair_srm.model.bean;

import java.util.ArrayList;

import org.apache.struts2.json.annotations.JSON;

@SuppressWarnings("serial")
public class PurchaseOrderItem {
	private String item_no;
	private String material_text;
	private String quantity;
	private String unit;
    private String order_id;
    private String material_no;
    private ArrayList<SechduleLine> sechduleLines ;
    private ArrayList<VConfirmation> confirmations1;
    private ArrayList<VConfirmation> confirmations2;
    private String comment;
    private ArrayList<History> history;
    
    public PurchaseOrderItem(){
    	sechduleLines = new ArrayList<SechduleLine>();
    	history = new ArrayList<History>();
    	confirmations1 = new ArrayList<VConfirmation>();
    	confirmations2 = new ArrayList<VConfirmation>();
    }
    
    @JSON(name="item_no")
	public String getItem_no() {
		return item_no;
	}
	public void setItem_no(String itemNo) {
		item_no = itemNo;
	}
	@JSON(name="material_text")
	public String getMaterial_text() {
		return material_text;
	}
	public void setMaterial_text(String materialText) {
		material_text = materialText;
	}
	@JSON(name="quantity")
	public String getQuantity() {
		return quantity;
	}
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
	@JSON(name="unit")
	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	
    @JSON(name="material_no")
	public String getMaterial_no() {
		return material_no;
	}

	public void setMaterial_no(String materialNo) {
		material_no = materialNo;
	}

	@JSON(name="order_id")
	public String getOrder_id() {
		return order_id;
	}
	
	public void setOrder_id(String orderId) {
		order_id = orderId;
	}
    
    public void addSechduleline(SechduleLine e) {
    	this.sechduleLines.add(e);
    }
    
    public void addConfirmation1(VConfirmation e){
    	this.confirmations1.add(e);
    }
    
    public void addConfirmation2(VConfirmation e){
    	this.confirmations2.add(e);
    }

    public void addHistory(History e){
    	this.history.add(e);
    }
    
	public ArrayList<SechduleLine> getSechduleLines() {
		return sechduleLines;
	}

	public void setSechduleLines(ArrayList<SechduleLine> sechduleLines) {
		this.sechduleLines = sechduleLines;
	}

	public ArrayList<VConfirmation> getConfirmations1() {
		return confirmations1;
	}

	public void setConfirmations1(ArrayList<VConfirmation> confirmations1) {
		this.confirmations1 = confirmations1;
	}

	public ArrayList<VConfirmation> getConfirmations2() {
		return confirmations2;
	}

	public void setConfirmations2(ArrayList<VConfirmation> confirmations2) {
		this.confirmations2 = confirmations2;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setHistory(ArrayList<History> history) {
		this.history = history;
	}

	public ArrayList<History> getHistory() {
		return history;
	}
    
    
    
}
